@import "./mixins/reset";

/* public */
::-moz-selection{background:#ddd;color:#32b16c;}
::selection{background:#ddd;color:#32b16c;}

/* 字体大小 */
.font-0{font-size:0;}
.font-14{font-size:14px;}
.font-16{font-size:16px;}
.font-18{font-size:18px;}
.font-20{font-size:20px;}
.font-22{font-size:22px;}
.font-24{font-size: 24px;}

/* 公共颜色 */
.bgwhite{background:#fff !important;}
.common_blue{color:#32b16c;}		//通用绿
.yellow{color: #ffc108;}			//黄色
.warning{color: #f00;}				//警告
.c000{color: #000;}					//黑色
.c333{color: #333;}
.c666{color: #666;}
.c999{color: #999;}
.cfff{color: #fff;}

/* 公共class */
.commonWrap{
    width:1200px;
    margin-left:auto;
    margin-right:auto;
}
.inblock{display: inline-block;}
.show{display:block !important;}
.hide{display:none !important;}
.fontSun{font-family:Sim Sun !important;}
.fontYaHei{font-family:Microsoft YaHei !important;}
.fontArial{font-family: Arial !important;}
.table{width:100%;
    th{font-weight:normal;
        text-align: center;
    }
    td,th{padding: 10px;}
}
.clear:after{
    content:'';
    display:block;
    clear:both;
    height:0;
}
.clear{*zoom:1;}
.tac{text-align:center;}
.tal{text-align:left;}
.tar{text-align:right;}
.prel{position:relative;}
.pabs{position:absolute;}
.fixed{position:fixed;}
.fl{float:left;}
.fr{float:right;}
.verTop{vertical-align:top !important;}
//文字溢出隐藏,	显示省略号
.txtOverflow{
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}
input.warning{border-color:#f00 !important;}
pre{white-space:pre-wrap !important;}

/* 公共margin */
.marginTop10{margin-top:10px;}
.marginTop20{margin-top:20px;}
.marginTop40{margin-top:40px;}
.padding10{padding:10px;}

// 灰色按钮
.btn_default{
    height:30px;
    line-height: 30px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 4px;
    border:1px solid #e5e5e5;
    background: #f5f5f5;
    color: #333;
    &:hover{
        background: #e5e5e5;
        text-decoration:none;
    }
}

/*
.layer, .layermask{
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.layer, .layermask{position: fixed;}
*/

html.layerShow, html.layerShow body{
    height: 100%;
    overflow: hidden;
}

.fade-enter-active, .fade-leave-active {transition:opacity .2s;}
.fade-enter, .fade-leave-to {opacity: 0;}

.table{
    /* 公共表格 */
    thead,tfoot,td{border: 1px solid #e5e5e5;}
    thead{background: #f8f8f8;}
}

#wrapper{
    min-height: 900px;
    padding-bottom: 120px;
    transition-duration: .2s;
    transform: translateX(-100px);
    opacity: 0;
    &.loaded{opacity:1;
        transform: translateX(0);
        #footer{opacity:1;}
    }
}

//header
#headerbar{
    width: 100%;
    min-width: 1200px;
    line-height: 20px;
    background:#fff;
    border-bottom:1px solid #e7e7e7;
    .wrap{
        width:600px;
        margin:0 auto;
        position:relative;
        .logo{display:inline-block;
            vertical-align:top;
        }
    }
    .nav{display:inline-block;
        vertical-align:top;
        li{display:inline-block;
            vertical-align:top;
            line-height:44px;
            margin-left:20px;
            margin-right:20px;
        }
        a{display:block;
            padding-top:3px;
            border-bottom:3px solid transparent;
            font-size:16px;
            color:#34495e;
            &:hover{color:#333;
                text-decoration:none;
            }
            &.active{
                border-bottom: 3px solid #42b983;
            }
        }
    }

    .searchBox{
        height: 30px;
        border-bottom:1px solid #d6d6d6;
        vertical-align:top;
        margin-top:14px;
        margin-left:15px;
        overflow: hidden;
        &.extend{border-color:#32b16c;
            .searchField{width:110px;}
            .icon-search{color:#32b16c;}
        }
        .searchField{
            height: 24px;
            line-height:24px;
            padding:3px 7px;
            width: 41px;
            transition-duration:.3s;
            transition-timing-function:ease-in-out;
        }
        .icon-search{
            cursor:pointer;
            font-size: 22px;
            transition-duration:.3s;
            margin-right: 3px;
            position:relative;
            top:3px;
        }
    }
}

#sidebar{/*position:relative; z-index: 10001;*/
    &.active{
        .asidebg{left:0;}
        .asideMenu{height: 100%;
            transform:translateX(0);
        }
        .asideToggle{
            .line, &:before, &:after{width:20px;}
            .line{
                width:4px;
                z-index:1;
                left:22px;
                border-radius: 0;
                border-color: #32b16c;
            }
            &:before{top:22px; left:14px;
                transform:rotateZ(45deg);
            }
            &:after{top:22px; left:14px;
                transform:rotateZ(-45deg);
            }
        }
    }
    .asidebg{
        position:fixed;
        top:0;right:0;
        bottom:0;
        z-index:100;
        background:rgba(0,0,0,.2);
    }
    .asideMenu{
        position:fixed;
        top:0; left:0;
        z-index: 101;
        width: 140px;
        transform:translateX(-100%);
        transition-duration:.3s;
        min-height: 600px;
        background:#2a2a2a;
        padding-left: 50px;
        padding-right:50px;
        color: #fff;
    }
    .asideToggle{
        position: absolute;
        top:140px; right:-100px;
        width:50px; height:50px;
        border-radius: 50%;
        overflow: hidden;
        background:#32b16c;
        .line, &:before, &:after{
            position:absolute;
            left:15px;
            width:17px;
            height:3px;
            background:#32b16c;
            border:1px solid #fff;
            border-radius:4px;
            transition-duration:.2s;
        }
        .line{top:22px;}
        &:before, &:after{content: '';}
        &:before{top:16px;}
        &:after{top:28px;}
    }
    .avatarBox{padding-top:100px;
        margin-bottom: 100px;
        .avatar{
            width: 100px;
            height: 100px;
            border-radius:50%;
            overflow: hidden;
            margin:0 auto;
        }
        img{display: block;
            border-radius:50%;
            width: 100%;
        }
        .userName{
            line-height: 24px;
            text-align: center;
            margin-top:10px;
            font-size:16px;
        }
    }
    .menuList{line-height: 40px;
        li{padding-left:20px;}
        a{display:inline-block;
            min-width: 80px;
            color: #fff;
        }
    }
    .icon{margin-right:5px;
        position:relative;top:3px;
        font-size: 24px;
    }
    .logstatus{
        display: block;
        margin:100px auto 0;
        padding-left: 20px;
        color: #fff;
    }
}

//footer
#footer{
    position:absolute;
    left:0;right:0;bottom:0;
    color: #fff;
    padding:40px;
    line-height:24px;
    text-align:center;
    background:#727f80;
    opacity:0;
}

//404
#notfound{
    width: 200px;
    height:400px;
    margin:100px auto;
    text-align:center;
    .icon{font-size:200px;}
    .missing{color:#666;}
}

//desk
#desk{
    padding:20px;
    max-width:750px;
    margin: 0 auto;
    /*transform-style: preserve-3d;
    perspective:1000px;*/
}

.empty{text-align: center;
    padding-top:140px;
    img{width:270px;}
    a{text-decoration:underline;}
}

#articleList{
    li{position:relative;
        margin-bottom:30px;
        &:after{
            content:'';
            position:absolute;
            bottom:-10px;left:0;
            right:0;height:1px;
            background:#d6d6d6;
            box-shadow:0 1px 3px 0 rgba(0,0,0,.1);
            clear:both;
        }
        .title{
            height: 36px;
            line-height:36px;
            overflow: hidden;
            font-size:20px;
        }
        .number{
            float:left;
            width:6px;
            height:6px;
            margin:14px 15px 0 10px;
            border:1px solid #32b16c;
            border-radius:50%;
        }
        .icon{
            float:left;
            font-size:36px;
            margin-right:10px;
        }
        .icon-less, .icon-css{font-size:44px;}
        .icon-nodejs{
            font-size:94px;
            margin-top:-27px;
        }
        .about{
            color:#777;
            font-size:12px;
        }
        .summary{
            text-align:justify;
            margin-top: 10px;
            line-height:1.5;
            overflow:hidden;
            display:table;
            width:100%;
        }
        .summaryTxt{
            display: table-cell;
            vertical-align:middle;
            width:75%;
        }
        .img{display: table-cell;
            vertical-align:middle;
        }
        img{display:block;width:100%;}
        .read{
            display: block;
            width:70px;
            height:20px;
            line-height:20px;
        }
    }
}

#post{
    position: relative;
    margin: 10px;
    height: 650px;
    margin-top:30px;
    .title{
        text-align: center;
        span{width: 50%;
            display: inline-block;
        }
    }
    #textInput, #preview{
        box-sizing:border-box;
        position: absolute;
        top:30px;bottom:0;
        width: 50%;
        padding:10px;
        overflow-x:hidden;
        overflow-y:auto;
    }
    #textInput{
        left:0;
        border:1px solid #e7e7e7;
    }
    #preview{right:0;}
}

.articlepost{
    width: 800px;
    margin:20px auto;
    dl{width: 50%;
        display: inline-block;
        line-height: 30px;
        margin-bottom:10px;
        dt,dd{display: inline-block;}
        dt{width: 80px;}
        dd{width: 200px;}
        input[type='text']{
            width:270px;
            height: 20px;
            line-height: 20px;
            border: 1px solid #e7e7e7;
            border-radius:4px;
            padding:5px 10px;
        }
    }
    label{
        display: block;
        margin-top:10px;
        width:150px;
        height: 20px;
        input{margin-top:4px;
            margin-right:5px;
        }
    }
}

#savePost{
    display:block;
    width:100px;
    height:32px;
    color: #fff;
    padding:0 10px;
    margin-top:10px;
    line-height:30px;
    text-align: center;
    border:1px solid #25a56b;
    border-radius:4px;
    background: #25a56b;
    text-decoration:none;
    &:hover{background:#42b983;}
}

/* 日历控件皮肤 */
.laydate_body {
    .laydate_nothis {color: #999;}
    .laydate_box {
        width: 240px;
        z-index: 10;
        background: #fff;
        color: #00625A;
        .laydate_void {color: #00E8D7;}
        a {text-decoration: none;
            color: #00625A;
        }
        cite, label {
            position: absolute;
            width: 0;
            height: 0;
            border-width: 5px;
            border-style: dashed;
            border-color: transparent;
            overflow: hidden;
            cursor: pointer;
        }
        .laydate_yms {display: none;}
        .laydate_show {display: block;}
        .laydate_click {
            background: #25a56b;
            color: #fff;
        }
    }
    .laydate_top {
        border-top: 1px solid #25a56b;
        background: #25a56b;
        position: relative;
        height: 36px;
        padding: 5px;
        z-index: 100;
        input{color: #fff;
            background: #25a56b;
        }
    }
    .laydate_ym {
        position: relative;
        float: left;
        height: 26px;
        cursor: pointer;
        border: 1px solid #25a56b;
        background: #25a56b;
        input {
            float: left;
            height: 24px;
            line-height: 24px;
            text-align: center;
            cursor: pointer;
        }
        .laydate_yms {
            position: absolute;
            left: -1px;
            top: 24px;
            height: 181px;
            box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
            border: 1px solid #25a56b;
            background: #25a56b;
            color: #fff;
        }
    }
    .laydate_y {
        width: 121px;
        margin-right: 4px;
        input {
            width: 64px;
            margin-right: 15px;
        }
        .laydate_yms {
            width: 122px;
            text-align: center;
            a {position: relative;
                display: block;
                height: 20px;
                border-bottom: 1px solid #25a56b;
                &:hover {background: #00C1B3;}
            }
            ul {
                height: 140px;
                li {
                    float: left;
                    width: 60px;
                    height: 20px;
                    line-height: 20px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                }
            }
        }
    }
    .laydate_m {
        width: 100px;
        .laydate_yms {
            width: 100px;
            padding: 0;
        }
        input {
            width: 42px;
            margin-right: 15px;
        }
        .laydate_yms span {
            display: block;
            float: left;
            width: 42px;
            margin: 5px 0 0 5px;
            line-height: 24px;
            text-align: center;
        }
    }
    .laydate_choose {
        display: block;
        float: left;
        position: relative;
        width: 20px;
        height: 24px;
        &:hover{background: #00C1B3;}
        cite {
            left: 50%;
            top: 50%;
        }
    }
    .laydate_m .laydate_yms span:hover, .laydate_time .laydate_hmsno span:hover, .laydate_y .laydate_yms ul li:hover, .laydate_table td:hover {
        background: #00C1B3;
        color: #fff;
    }
    .laydate_tab cite {
        left: 50%;
        top: 50%;
    }
    .laydate_chtop cite {
        margin: -7px 0 0 -5px;
        border-bottom-style: solid;
        border-bottom-color: #fff;
    }
    .laydate_chdown{border-top: 1px solid #25a56b;}
    .laydate_chdown cite, .laydate_ym label {
        top: 50%;
        margin: -2px 0 0 -5px;
        border-top-style: solid;
        border-top-color: #fff;
    }
    .laydate_chprev {
        border-left: none;
        border-right: 1px solid #25a56b;
    }
    .laydate_chprev cite {
        border-right-style: solid;
        border-right-color: #fff;
        margin: -5px 0 0 -7px;
    }
    .laydate_chnext cite {
        border-left-style: solid;
        border-left-color: #fff;
        margin: -5px 0 0 -2px;
    }
    .laydate_ym label {right: 22px;}
    .laydate_table {
        width: 240px;
        border-collapse: collapse;
        border-spacing: 0px;
        border: 1px solid #ccc;
        border-top: 0;
        border-bottom:0;
        td {
            width: 31px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            cursor: pointer;
            font-size: 12px;
            background: #fff;
            color: #00625A;
        }
        thead {
            height: 22px;
            line-height: 22px;
            border-bottom: 1px solid #ccc;
            th {
                font-weight: 400;
                font-size: 12px;
                text-align: center;
            }
        }
    }
    .laydate_bottom {
        position: relative;
        height: 32px;
        line-height: 20px;
        padding: 5px;
        font-size: 12px;
        #laydate_hms {
            float: left;
            background: #fff;
            border: 1px solid #ccc;
            position: relative;
            z-index: 1;
        }
    }
    .laydate_time {
        position: absolute;
        left: 5px;
        bottom: 26px;
        width: 130px;
        height: 125px;
        display: none;
        background: #fff;
        border: 1px solid #ccc;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
        .laydate_hmsno {
            padding: 5px 0 0 5px;
            span {
                float: left;
                width: 24px;
                height: 20px;
                line-height: 20px;
                text-align: center;
                cursor: pointer;
                *margin-bottom: -5px;
            }
        }
    }
    .laydate_msg {
        left: 50px;
        bottom: 67px;
        width: 141px;
        height: auto;
        overflow: hidden;
        p {padding: 5px 10px;}
    }
    .laydate_bottom {
        li {
            float: left;
            height: 20px;
            line-height: 20px;
            border-right: none;
            font-weight: 900;
        }
        .laydate_sj {
            width: 33px;
            text-align: center;
            font-weight: 400;
            border-right: 1px solid #ccc;
            background: #fff;
        }
        input {
            float: left;
            border: 0;
            width: 21px;
            height: 20px;
            line-height: 20px;
            text-align: center;
            cursor: pointer;
            font-size: 12px;
            font-weight: 400;
            background: #fff;
            color: #00625A;
        }
        .laydte_hsmtex {
            height: 20px;
            line-height: 20px;
            text-align: center;
            border-bottom: 1px solid #ccc;
            span {
                position: absolute;
                width: 20px;
                top: 0;
                right: 0px;
                cursor: pointer;
                &:hover {font-size: 14px;}
            }
        }
        .laydate_btn {
            border-right: 1px solid #ccc;
            position: absolute;
            right: 5px;
            top: 5px;
            a {float: left;
                padding: 0 6px;
                border: 1px solid #ccc;
                border-right: 0;
                background:#fff;
                &:hover {
                    background:#F6F6F6;
                    color: #00625A;
                }
            }
        }
        .laydate_v {
            font-family: Courier;
            position: absolute;
            left: 10px;
            top: 6px;
            color: #999;
        }
    }
}

#articleContent{
    margin: 40px;
}

#editor{width: 1080px;
    padding-bottom:80px;
    margin:40px auto;
    #ueditor{
        height:1000px;
    }
}

#login{padding:120px 0 30px;
    .signTitle{
        text-align:center;
        line-height:60px;
    }
    .remark{
        max-width: 600px;
        margin: 100px auto 0;
        text-align:center;
        a{color: #42b983;}
    }
}

#signBox{
    width: 260px;		
    padding:20px;
    margin: 0 auto;
    background:#fafafa;
    border:1px solid #e7e7e7;
    border-radius:3px;
    .explain{color:#777;
        &.wrongfield{color:red;}
    }
    .inputBox{
        background:#fff;
        border:1px solid #e7e7e7;
        border-radius:3px;
        padding:7px;
        margin:7px 0;
    }
    input{
        width:240px;
        height: 20px;
        line-height: 20px;
        font-size:14px;
    }
    .signBtn{
        display:block;
        width: 100%;
        height:40px;
        line-height:40px;
        text-align:center;
        background:#42b983;
        text-decoration:none;
        border-radius:3px;
        margin-top:20px;
        font-size:18px;
        color:#fff;
        &:hover{background:#25a56b;}
    }
}




